<%--
  Created by IntelliJ IDEA.
  User: jiao
  Date: 2021/11/24
  Time: 19:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        *{
            text-align: center;
        }
        .p a{
            width: 38px;
            height: 38px;
            display: inline-block;
            line-height: 40px;
            text-align: center;
            border-radius: 50%;
            background-color: aqua;
            color: darkorange;
            font-size: 6px;
        }
        .p a:hover{
            background-color: aquamarine;
            color: coral;
        }
        #ding{
            /*width: 100%;*/
            position: fixed;
            bottom: 0px;
            left: 0px;
            right: 0px;
            margin: 0px;
            /*background-color: white;*/
        }

    </style>
</head>
<body>
<a href="${pageContext.request.contextPath}/index.jsp">跳转首页</a>
<c:forEach items="${pageInfo.list }" var="net">
    <h3>文件名:${net.name }</h3>
    <h3>上传者ip:${net.ip }</h3>
    <h3>文件大小:${net.size }</h3>
    <h3>上传时间: <fmt:formatDate value="${net.uploadtime }" pattern="yyyy-MM-dd HH:mm:ss"/></h3>
    <h3>文件描述:${net.description }</h3>
    <h3>  <a href="${pageContext.request.contextPath}/Net/fileDownload?fileName=${net.picurl}">下载</a></h3>
    <hr/>
</c:forEach>
<p id="ding" class="p"><span style="color: red">当前第 ${pageInfo.pageNum} 页,总 ${pageInfo.pages} 页,共 ${pageInfo.total} 条记录</span>
<a href="${pageContext.request.contextPath}/Net/findAllPage?pageNum=1&pageSize=${pageInfo.pageSize}">首页</a>
<c:if test="${pageInfo.hasPreviousPage}">
    <a href="${pageContext.request.contextPath}/Net/findAllPage?pageNum=${pageInfo.pageNum-1}&pageSize=${pageInfo.pageSize}">上一页</a>
</c:if>
<c:forEach begin="1" end="${pageInfo.pages}" var="pageNum">
    <a href="${pageContext.request.contextPath}/Net/findAllPage?pageNum=${pageNum}&pageSize=${pageInfo.pageSize}">${pageNum}</a>
</c:forEach>
<c:if test="${pageInfo.hasNextPage}">
    <a href="${pageContext.request.contextPath}/Net/findAllPage?pageNum=${pageInfo.pageNum+1}&pageSize=${pageInfo.pageSize}">下一页</a>
</c:if>
<a href="${pageContext.request.contextPath}/Net/findAllPage?pageNum=${pageInfo.pages}&pageSize=${pageInfo.pageSize}">尾页</a>
</p>
</body>

</html>
